<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */


use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use backend\controllers\CategoryController;
use common\models\category\Category;
use common\models\setting\Setting;
?>
<?php
//导航栏目信息
$data = Category::find()->where(['status' => 1, 'parent_id' => 0])->asArray()->all();

//版权信息
$copyright = '';
try
{
   $copyright = Setting::findOne(['code'=>'copyright'])->value;
}
catch(ErrorException $e)
{

}

//备案信息
$beian = '';
try
{
   $beian = Setting::findOne(['code'=>'beian'])->value;
}
catch (ErrorException $e)
{

}

?>
<div id="Footer">
         <ul class="Top">
            <li><a href="<?= yii\helpers\Url::to(['site/index']);?>">首页</a></li>

            <?php foreach($data as $vo){ $newurl = '/'.$vo['type']; ?>
               <li>|</li>
               <li>
                  <a href="<?= yii\helpers\Url::to([$newurl, 'id' => $vo['id']]); ?>"><?= $vo['name'];?></a>
               </li>
            <?php } ?>
         </ul>
         <p><span><?= $copyright ?></span></br><span><?= $beian; ?></span>技术支持：<a href="#" style="color:#444444">万虎网络 </a></p>
    </div>